package com.aizhixin.quick.controller;


import com.aizhixin.quick.service.RecordService;
import com.aizhixin.quick.utils.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.swing.plaf.PanelUI;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author ${author}
 * @since 2021-08-09
 */
@RestController
@Api(tags = "答题记录")
@RequestMapping("/record")
public class RecordController {
    @Autowired
    RecordService recordService;

/*
 根据答题人id 查询答题记录
  */
    @GetMapping("/getRecordByid")
    public Result getRecordByid(){
        recordService.getById();
    return Result.ok();
}

/*
根据试题分类查询 答题记录
 */
    @GetMapping("/getRecordByExamType")
    public Result getRecordByExamType(){
        recordService.listObjs();
    return Result.ok();
}

/*
根据分类等级查询 答题记录
 */
    @GetMapping("/getRecordByTypeLevel")
    public Result getRecordByTypeLevel(){
        recordService.listObjs();
    return Result.ok();
}

/*
根据分值区间(between) 查询 答题记录
 */
    @GetMapping("/getRecordByAnswerScore")
    public Result getRecordByAnswerScore(){
        recordService.listObjs();
    return Result.ok();
}

/*
根据答题时间 查询 答题记录
 */
    @GetMapping("/getRecordByAnswerTime")
    public Result getRecordByAnswerTime(){
        recordService.listObjs();
        return Result.ok();
    }
}

